﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HUST.JackRiver.Demo.Doc2Text_Console
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Count() == 1)
            {
                try
                {
                    Doc2Text.Doc2TextConverter converter = new Doc2Text.Doc2TextConverter(args[0]);
                    Console.WriteLine(converter.Convert());
                    Console.WriteLine("转换完成");
                    Console.ReadKey();
                }
                catch
                {
                    Console.WriteLine("程序出错运行错误");
                }
            }
            else
            {
                Console.WriteLine("使用方法：<doc2text.exe> <文件路径>");
            }
        }
    }
}
